﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ProjetosLeis.aspx.cs" Inherits="Site_CamaraTibau.ProjetosLeis" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">




<div style="float: left; height: auto; width:100%; margin:0px 0px 40px 10px;">

    <h2>Projetos Lei</h2>

    <br clear="all" />

    <div style="float: left; height: auto; width:100%; margin:0px 0px 0px 0px;">
        <asp:LinkButton ID="lbkVerBusca" runat="server" CssClass="aLink1" OnClick="lbkVerBusca_Click" Visible="false">Clique aqui para habilitar a busca.</asp:LinkButton>
    </div>

    <div style="float: left; height: auto; width:100%; margin:10px 0px 0px 0px;" runat="server" id="div_busca" visible="true" >
        <div style="float: left; height: auto; width:100%; margin:0px 0px 0px 0px;">
            <div style="float: left; height: auto; margin:0px 10px 0px 0px;">
                <asp:Label ID="Label4" runat="server" AssociatedControlID="ddlTipoLei" Width="100px" Text="Tipo Projeto Lei:" CssClass="lbl" /><br />
                <asp:DropDownList ID="ddlTipoLei" runat="server" CssClass="ddList"></asp:DropDownList>
            </div>
            <div style="float: left; height: auto; margin:0px 10px 0px 0px;">
                <asp:Label ID="Label1" runat="server" AssociatedControlID="txtPesquisarNumero" Width="100px" Text="Número:" CssClass="lbl" /><br />
                <asp:TextBox ID="txtPesquisarNumero" runat="server" CssClass="textBox" Width="100px"></asp:TextBox>
            </div>
            <div style="float: left; height: auto; margin:0px 10px 0px 0px;">
                <asp:Label ID="Label2" runat="server" AssociatedControlID="txtPesquisarEmenta" Width="100px" Text="Ementa:" CssClass="lbl" /><br />
                <asp:TextBox ID="txtPesquisarEmenta" runat="server" CssClass="textBox" Width="305px"></asp:TextBox>
            </div>
        </div>

        <br clear="all" />
        <div style="float: left; height: auto; width:100%; margin:0px 0px 0px 0px;">
             <div style="float: left; height: auto; margin:0px 10px 0px 0px;">
                <asp:Label ID="Label6" runat="server" AssociatedControlID="ddlVereador" Width="100px" Text="Autor:" CssClass="lbl" /><br />
                <asp:DropDownList ID="ddlVereador" runat="server" CssClass="ddList"></asp:DropDownList>
            </div>
            <div style="float: left; height: auto; margin:0px 10px 0px 0px;">
                <asp:Label ID="Label3" runat="server" AssociatedControlID="txtPesquisarDtInicial" Width="100px" Text="Dt. Inicial:" CssClass="lbl" /><br />
                <asp:TextBox ID="txtPesquisarDtInicial" runat="server" CssClass="textBox" Width="120px"></asp:TextBox>
            </div>
            <div style="float: left; height: auto; margin:0px 10px 0px 0px;">
                <asp:Label ID="Label5" runat="server" AssociatedControlID="txtPesquisarDtFinal" Width="100px" Text="Dt. Final:" CssClass="lbl" /><br />
                <asp:TextBox ID="txtPesquisarDtFinal" runat="server" CssClass="textBox" Width="120px"></asp:TextBox>
            </div>
            <div style="float: left; height: auto; margin:0px 10px 0px 0px;">
                <br />
                <asp:ImageButton ID="btnPesquisar" runat="server" ImageUrl="~/img/icon_search.png" ToolTip="Realizar Busca" OnClick="btnPesquisar_Click" />
            </div>
        </div>

        <br clear="all" />

        <div style="float: left; height: auto;  width:100%; margin:20px 0px 0px 0px;">
            <h4><asp:Label ID="lblNumeroLinhas" runat="server" Text=""></asp:Label></h4>
        </div>

        <br clear="all" />
        <div style="float: left; height: auto; width:97%; margin:0px 0px 0px 0px;">
                 <asp:GridView ID="gvListagem" 
                                runat="server" 
                                AutoGenerateColumns="false"
                                CellPadding="2" 
                                ForeColor="#333333" 
                                GridLines="None"
                                AllowPaging="true"
                                PageSize="10"
                                ShowFooter="false"
                                EmptyDataText="Nenhum registro foi localizado!"
                                OnRowCreated="gvListagem_RowCreated"
                                OnRowCommand="gvListagem_RowCommand"
                                OnPageIndexChanging="gvListagem_PageIndexChanging"
                                Width="100%"
                                >
                                <Columns>

                                <asp:TemplateField HeaderText="Tipo Lei">
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" Width="260px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblTipoLei" runat="server" Text='<%# Eval("Tipo") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Número">
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblNumero" runat="server" Text='<%# Eval("Numero") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Data Entrada">
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
                                    <ItemTemplate>
                                        <asp:Label ID="lblDtPublicacao" runat="server" Text='<%# string.Format("{0:dd/MM/yyyy}", Eval("dtPublicacao"))%>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField>
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="20px" />
                                    <ItemTemplate>
                                        <asp:ImageButton ID="btnVisualizar" Text="Visualizar" runat="server" CausesValidation="false"
                                        CommandName="cmdVisualizar" CommandArgument='<%# Eval("URL")  %>' 
                                        ImageUrl="~/img/icon_search.png" ToolTip='<%# String.Concat("Visualizar Projeto Lei Nº: ", Eval("Numero")) %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>

                                </Columns>
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                <EditRowStyle BackColor="#999999" />
                                <FooterStyle BackColor="#284775" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" HorizontalAlign="Left" Height="26px" Font-Size="14px" />
                                <PagerStyle BackColor="#5D7B9D" ForeColor="White" HorizontalAlign="Center" />
                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                            </asp:GridView>
        </div>

    </div>
</div>
</asp:Content>
